package com.winsdom.vo.uniformCharge;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel("收费请求")
@Data
public class ChargeRequestDTO {
    @ApiModelProperty(value = "客户ID", required = true)
    @NotNull(message = "客户ID不能为空")
    private Long customerId;

    @ApiModelProperty(value = "账单明细ID列表", required = true)
    @NotEmpty(message = "至少选择一个收费项")
    private List<Integer> detailIds;

//    private List<ExpenditureDto>

    @ApiModelProperty(value = "付款方式：1-现金, 2-支票, 3-微信,4-支付宝", required = true)
    @NotNull(message = "付款方式不能为空")
    private Integer paymentMethod;

    @ApiModelProperty(value = "支票号码")
    private String chequeNumber;

    @ApiModelProperty(value = "发票类型:1-增值税电子普通发票,2-增值税专用发票,3-电子发票(增值税普票),4-电子发票(增值税专发票),5-纸质收据")
    private Integer invoiceType;

    @ApiModelProperty(value = "发票抬头ID（当开票类型不是纸质收据时必填）")
    private Long headerId;
}
